package com.mlm.mlmapp.activity;

import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.widget.Button;

import com.mlm.mlmapp.R;
import com.mlm.mlmapp.interfaces.Prefs_;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import org.androidannotations.annotations.sharedpreferences.Pref;

@EActivity(R.layout.home)
public class HomeActivity extends BaseActivity{
    @Pref
    Prefs_ pref;

    FragmentManager fm;

    @AfterViews
    public void init() {
        fm=getSupportFragmentManager();

    }

    @ViewById
    Button btn_home;

    @Click
    void btn_home() {
        // MainActivity_.intent(this).start();

    }

    @Click
    void btn_dresser() {
        HairDresserListActivity_.intent(this).extra("bookflag", false).flags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT).start();
    }

    @Click
    void btn_appointment() {
        BookActivity_.intent(this).start();
    }

    @Click
    void btn_style() {
        HairStyleListActivity_.intent(this).flags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT).start();
    }

    @Click
    void btn_userinfo() {
        UserInfoActivity_.intent(this).flags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT).start();
    }
}
